var fs=require('fs');

fs.stat('./1.stat.js', function (err, stat) {
    console.log(err);
    console.log(stat);

    console.log('isFile:',stat.isFile());
    console.log('isDir:',stat.isDirectory());
    console.log('isBlockDevice:',stat.isBlockDevice());
    console.log('isCharacterDevice:',stat.isCharacterDevice());
    console.log('isSymbolicLink:',stat.isSymbolicLink());
    console.log('isFIFO:',stat.isFIFO());
    console.log('isSocket:',stat.isSocket());
});